import Demo from './pages/demo'
import Layout from './pages/layout'
import News from './pages/news'
import {
  FileTextOutlined,
  InsertRowLeftOutlined,
  MenuOutlined,
} from '@ant-design/icons'

export default [
  {
    name: '测试案例',
    exact: true,
    path: '/demo',
    icon: FileTextOutlined,
    component: Demo
  },
  {
    name: '应用装修',
    path: '/layout',
    exact: true,
    icon: InsertRowLeftOutlined,
    component: Layout
  },
  {
    name: '新闻动态',
    exact: true,
    path: '/news',
    icon: MenuOutlined,
    component: News,
    children: {
      detail: {
        name: '新闻动态',
        exact: true,
        path: '/news/detail',
      }
    }
  },
]